import requests
from bs4 import BeautifulSoup
import time
import random
import pandas as pd
import io

headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0',
    'Cookie': 'Hm_lvt_112cc63ae7d0082ab4d30ec2c3a16614=1744800126; Hm_lpvt_112cc63ae7d0082ab4d30ec2c3a16614=1744800126; HMACCOUNT=514E3E9BF8D36D5F; JSESSIONID=2DB9C736423E358F0ECC234771AB9B89; jsid=736517cd-f72f-497b-b289-11038be325e7',
}

# 初始化一个空的 DataFrame 来存储所有数据
all_data = pd.DataFrame()